import request from '@/utils/request'

// 查询多联多控列表
export function listRelation(query) {
    return request({
        url: '/system/relation/list',
        method: 'get',
        params: query
    })
}

// 查询多联多控详细
export function getRelation(id) {
    return request({
        url: '/system/relation/' + id,
        method: 'get'
    })
}

// 新增多联多控
export function addRelation(data) {
    return request({
        url: '/system/relation',
        method: 'post',
        data: data
    })
}

// 修改多联多控
export function updateRelation(data) {
    return request({
        url: '/system/relation',
        method: 'put',
        data: data
    })
}

// 删除多联多控
export function delRelation(id) {
    return request({
        url: '/system/relation/' + id,
        method: 'delete'
    })
}

// 导出多联多控
export function exportRelation(query) {
    return request({
        url: '/system/relation/export',
        method: 'get',
        params: query
    })
}